package com.sw.study.mybatis.practice.pojo;

import java.util.Date;

/**
 * Created by sw on 2020/3/30.
 */
public class Order {
    private Long id;
    private Date ordertime;
    private Double totalPrice;
    private User user;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", ordertime=" + ordertime +
                ", totalPrice=" + totalPrice +
                ", user=" + user +
                '}';
    }
}